package com.google.android.gms.internal;

import java.io.IOException;

public final class zzfmf extends zzflm<zzfmf> {
    public String zzpxp = null;
    public Long zzpxq = null;
    public Boolean zzpxr = null;

    public zzfmf() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    public final /* synthetic */ zzfls zza(zzflj zzflj) throws IOException {
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx == 10) {
                this.zzpxp = zzflj.readString();
            } else if (zzcxx == 16) {
                this.zzpxq = Long.valueOf(zzflj.zzcxz());
            } else if (zzcxx == 24) {
                this.zzpxr = Boolean.valueOf(zzflj.zzcyd());
            } else if (!super.zza(zzflj, zzcxx)) {
                return this;
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.zzpxp != null) {
            zzflk.zzp(1, this.zzpxp);
        }
        if (this.zzpxq != null) {
            zzflk.zzf(2, this.zzpxq.longValue());
        }
        if (this.zzpxr != null) {
            zzflk.zzl(3, this.zzpxr.booleanValue());
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.zzpxp != null) {
            zzq += zzflk.zzq(1, this.zzpxp);
        }
        if (this.zzpxq != null) {
            zzq += zzflk.zzc(2, this.zzpxq.longValue());
        }
        if (this.zzpxr == null) {
            return zzq;
        }
        this.zzpxr.booleanValue();
        return zzq + zzflk.zzlw(3) + 1;
    }
}
